home *** CD-ROM | disk | FTP | other *** search
- onClipEvent(enterFrame){
- if(smashup == 1)
- {
- this.gotoAndPlay("smashup");
- smashup = 0;
- }
- if(_root.gameon == 1)
- {
- _X = _X - xspeed;
- }
- if(this._y < 100)
- {
- _Y = _Y + yspeed;
- yspeed += 0.01;
- }
- else if(_root.gameon)
- {
- if(_root.topbg._y > -500)
- {
- _root.topbg._y -= yspeed;
- _root.startmoving = 1;
- _root.readygo.play();
- _root.readygo._name = "displayer";
- }
- if(Key.isDown(37))
- {
- xspeed += 2 / (_root.weight * 0.01);
- if(xspeed > 10 && _root.weight < 200)
- {
- xspeed = 10;
- }
- }
- else if(Key.isDown(39))
- {
- xspeed -= 2 / (_root.weight * 0.01);
- if(xspeed < -10 && _root.weight < 200)
- {
- xspeed = -10;
- }
- }
- else if(xspeed != 0)
- {
- if(xspeed < 0)
- {
- xspeed += 2 / (_root.weight * 0.05);
- }
- else if(xspeed > 0)
- {
- xspeed -= 2 / (_root.weight * 0.05);
- }
- }
- _root.weight += 1;
- yspeed = _root.ballspeed + _root.weight / 140;
- hspeed = 100 / _root.weight / 5;
- _xscale = 20 + _root.weight / 13;
- _yscale = _xscale;
- }
- }
-